<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 500px;
            height: 300px;
        }

        img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
    <div id="app">
        <button v-show="index > 0" @click="index--">上一页</button>
        <!-- <img src="./image/【哲风壁纸】事件视界-天文学.png" alt=""> -->
        <div class="box">
            <img :src="list[index]" alt="">
            <!-- v-bind:src="imgUrl"可以简写为 :src="imgUrl" -->
        </div>
        <button v-show="index < list.length - 1" @click="index++">下一页</button>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                index: 0,
                list: [
                    './image/【哲风壁纸】动漫-紫色.png',
                    './image/【哲风壁纸】cs2-csgo.png',
                    './image/【哲风壁纸】事件视界-天文学.png'
                ]
            }
        })
    </script>
</body>

</html>